import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'

const app = createApp(App).use(store).use(router)

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import installElementPlus from './plugins/element/element'
import './plugins/element/element-variables.scss'
import './assets/icons/iconfont/iconfont.css'
import './assets/icons/iconfont/iconfont.js'
import '@/styles/index.scss' // global css
import 'leaflet/dist/leaflet.css'
import '@/plugins/permission'

import installSvgComponent from '@/icons' // icon
import '@/icons/aliIcon/iconfont.css' // ali icon

import installAmap from '@/plugins/maps/amap'

import installEcharts from '@/plugins/echart'
installSvgComponent(app)
installAmap(app)
installEcharts(app)

// import VueClipboard from 'vue-clipboard2'
// app.use(VueClipboard)

installElementPlus(app)

import axios from './plugins/axios'
app.provide('axios', axios)

app.mount('#app')
